package cn.wolfcode.wolf2w.redis.service;

import cn.wolfcode.wolf2w.domain.UserIdFavors;
import cn.wolfcode.wolf2w.redis.vo.StrategyStatisVO;

import java.util.List;

public interface IUserIdFavorsRedisService {

    /**
     * 判断redis中是否含有当前这个userIdFavors的token
     * @param usid
     * @return
     */
    boolean isUserIdFavorsExist(String usid);

    /**
     * 把userIdFavors设置到redis中
     * @param userIdFavors
     */
    void setUserIdFavorsRedis(UserIdFavors userIdFavors);

    /**
     * 查找redis中全部的UserIdFavors对象
     * @return
     */
    List<UserIdFavors> findAllUserIdFavors();

    /**
     * 把redis中所有得到userIdFavors设置回mongodb
     * @param userIdFavors
     */
    void setMongodb(List<UserIdFavors> userIdFavors);
}
